package action;


import com.opensymphony.xwork2.*;

//@SuppressWarnings("serial")
public class LoginAction extends ActionSupport{
	private String username;
	private String password;
	
	public String execute() throws Exception{
		if(getUsername().equals("wen")&&getPassword().equals("123")){
			return "success";
		}
		
		else {
			 return "error";
		}
	}
	
	
	public String getUsername(){
		return username;
	}
	
	public void setUsername(String username){
		this.username=username;
	}
	
	public String getPassword(){
		return password;
	}
	
	public void setPassword(String password){
		this.password=password;
	}
	

}
